var MFile = function(response, prefixUrl){
    this.response = response
    
    var mfile = this.response.childNodes[0];
    this.name = mfile.childNodes[0].firstChild.nodeValue;
    this.data = mfile.childNodes[1].getAttribute('id');
    
    this.ConstructHtml = function(){
        
        var mfilelink = document.createElement('a');
        var href = document.createAttribute('href');
        href.value = prefixUrl + "/" + this.data;
        mfilelink.setAttributeNode(href);
        
        var mfile = new YAHOO.util.Element(mfilelink);
        mfile.appendChild(document.createTextNode(this.name));
        
        return mfile;
    }

    this.appendTo = function(element){
        element.appendChild(this.ConstructHtml());
        
    }
}
